package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.MarketIntegratedReportModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by HangLiu on 2017/9/27.
 */
public interface MarketIntegratedReportRepository extends JpaRepository<MarketIntegratedReportModel, Integer>, JpaSpecificationExecutor<MarketIntegratedReportModel> {
    @Query("select a from MarketIntegratedReportModel a where a.permit=?1 and a.statDate=?2")
    MarketIntegratedReportModel findModelByPermitAndYear(String permit, String statDate);
}
